<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例12</title>
    <script src="jquery.js"></script>
    <script>
        function show(){
            // const list = $("li")
            // for (let i = 0; i < list.length; i++) {
            //     const content = $(list[i]).text();
            //     $(list[i]).text(content+"a")
            // }

            $("li").each(function (index,elem){
                $(elem).text($(elem).text()+"b")
            })
        }
    </script>
</head>
<body>
    <h2>热门动画排行</h2>
    <button onclick="show()">变变变</button>
    <ul class="animationList">
        <li>名侦探柯南</li>
        <li>阿拉蕾</li>
        <li>海贼王</li>
    </ul>
</body>
</html>